/*
 * @Author: AiLjx
 * @Date: 2022-08-02 15:14:57
 * @LastEditors: AiLjx
 * @LastEditTime: 2022-08-02 22:19:14
 */
import { getList } from "../../api.js";
SPA_RESOLVE_INIT = async function (transition) {
    let ul = document.getElementsByClassName("mvlist")[0];

    let ulStr = "";
    const data = await getList();
    data.forEach((item) => {
        ulStr += `<a  href='#/content?id=${item.id}'}> <img src=${item.cover} alt=${item.name} />
                ${item.name}</a>`;
    });
    ul.innerHTML = ulStr;
};
